.main {
  .header {
    display: flex;
    align-items: center;
    padding: 12px;

    .tab {
      :global {
        .ant-radio-button-wrapper {
          padding-inline: 6px !important;
        }
      }
      margin-right: 6px;
    }
    .search {
      flex: 1;
    }
    .groupIcon {
      margin-left: 12px;
    }
  }
}
.footer {
  border-top: 1px solid var(--hover-color2);
}
.sessionSelectPopover {
  :global {
    .ant-popover-inner {
      padding: 0 !important;
    }
  }
}
.treeContainer {
  overflow: hidden;
  padding: 0px 4px 12px 12px;
  .tree {
    .databaseItem {
      display: flex;
      .textoverflow {
        max-width: 130px !important;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex-shrink: 0;
      }
      .dataSourceInfo {
        color: var(--text-color-hint);
        margin-left: 8px;
        flex: 1;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
      }
    }

    .groupItem {
      width: 100%;
      display: flex;
      .tip {
        color: var(--text-color-hint);
        padding-left: 5px;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }

    .databaseIconContainer {
      margin-left: 7px;
      margin-right: 2px;
      display: flex;
      height: 100%;
      align-items: center;
    }

    :global {
      .ant-tree-treenode {
        width: 100%;
        .ant-tree-switcher {
          margin-inline-end: 0px !important;
        }
        .ant-tree-checkbox {
          margin-right: 0;
        }
      }
      .ant-tree-treenode-leaf {
        .ant-tree-checkbox {
          margin-left: 25px;
        }
      }
      .ant-tree-switcher-noop {
        display: none;
      }
      .ant-tree-node-content-wrapper {
        display: flex;
        display: flex;
        flex-grow: 1;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        .ant-tree-iconEle {
          width: auto;
          min-width: 24px;
        }
        .ant-tree-title {
          flex: 1;
          padding-right: 8px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
        }
      }

      .ant-badge {
        position: absolute;
        top: 0px;
        right: 4px;
        .ant-badge-status-dot {
          border-radius: 0px;
        }
      }
    }
  }
}
